package com.yhn.feign;

import com.hospital.common.base.Result;
import com.hospital.common.config.FeignConfig;
import com.hospital.common.dto.audit.module.SaveLogDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 审核日志Feign客户端
 */
@FeignClient(name = "audit-module", configuration = FeignConfig.class)
public interface AuditLogFeign {

    /**
     * 保存板块操作日志
     * @param saveLogDto 日志数据
     * @return 操作结果
     */
    @PostMapping(value = "/auditLog/saveSectionLog")
    Result<?> saveSectionLog(@RequestBody SaveLogDto saveLogDto);
}
